/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const router = {
  path: '/system',
  component: Layout,
  name: 'system',
  alwaysShow: true,
  meta: {
    title: 'systemManage',//'系统管理',
    icon: 'setting'
  },
  children: [

    {
      path: '/system/staff/',
      component: () => import('@/views/system/staff/staffList'),
      name: 'staffList',
      meta: {
        title: '员工管理'
      },
    },

    /*  {
       path: '/system/user',
       component: () => import('@/views/system/user'),
       name: 'system_user',
       meta: {
         title: 'userManage'//'用户管理' 
       },
       aliasChildren:['system_user_add','system_user_delete','system_user_detail','system_user_setrole','system_user_setuserpermission']
       // hidden: true
     },
     {
       path: '/system/user/add',
 
       name: 'system_user_add',
       hidden: true,
       meta: {
         title: 'addUser'//'添加用户' 
       }
     },
     {
       path: '/system/user/detail',
       component: () => import('@/views/system/user/detail'),
       name: 'system_user_detail',
       hidden: true,
       meta: {
         title: 'editUser'//'编辑用户' 
       }
     },
     {
       path: '/system/user/delete',
 
       name: 'system_user_delete',
       hidden: true,
       meta: {
         title: 'delUser'//'删除用户' 
       }
     },
     {
       path: '/system/user/setrole',
       component: () => import('@/views/system/user/setRole'),
       name: 'system_user_setrole',
       hidden: true,
       meta: { title: 'assignRoles' }
     }, {
       path: '/system/user/setuserpermission',
       name: 'system_user_setuserpermission',
       hidden: true,
       meta: {
         title: 'assignPermissions'//'分配权限'
       }
     },
     {
       path: '/system/role',
       name: 'system_role_list',
       component: () => import('@/views/system/role'),
       // hidden: true,
       meta: {
         title: 'rolesManage'//'角色管理' 
       },
       aliasChildren:['system_role_add','system_role_delete','system_role_detail','system_role_setuser','system_role_setrolepermission']
     },
     {
       path: '/system/role/add',
       component: () => import('@/views/system/role/detail'),
       name: 'system_role_add',
       hidden: true,
       meta: {
         title: 'addRoles'//'添加角色'
       }
     },
     {
       path: '/system/role/delete',
       component: () => import('@/views/system/role/detail'),
       name: 'system_role_delete',
       hidden: true,
       meta: {
         title: 'delRoles'//'删除角色'
       }
     },
     {
       path: '/system/role/detail',
       component: () => import('@/views/system/role/detail'),
       name: 'system_role_detail',
       hidden: true,
       meta: {
         title: 'editRoles'//'编辑角色'
       }
     },
     {
       path: '/system/role/setuser',
       component: () => import('@/views/system/user/setRole'),
       name: 'system_role_setuser',
       hidden: true,
       meta: {
         title: 'assignUser'//'分配用户' 
       }
     }, {
       path: '/setrolepermission',
       name: 'system_role_setrolepermission',
       hidden: true,
       meta: {
         title: 'assignPermissions'//'分配权限'
       }
     }
  */
  ]
}

export default router
